package com.xinhuajs.articlemg.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xinhuajs.articlemg.dao.IArticleDAO;
import com.xinhuajs.articlemg.pojo.Article;
import com.xinhuajs.articlemg.service.IArticleService;
@Service("articleService")
public class ArticleServiceImpl implements IArticleService {
    @Autowired
	private IArticleDAO articleDAO;
	@Override
	public String getArticlesByPageJSON(Map<String, Object> paramMap) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int getArticleCount(Map<String, Object> paramMap) {
		// TODO Auto-generated method stub
		return articleDAO.getArticleCount(paramMap);
	}

	@Override
	public void getArticlesByPage(Map<String, Object> paramMap) {
		// TODO Auto-generated method stub
       articleDAO.getArticlesByPage(paramMap);
	}

	
	@Override
	public Article getArticleByFileid(String fileid) {
		// TODO Auto-generated method stub
		return articleDAO.getArticleByFileid(fileid);
	}

	@Override
	public void addArticleInfo(Map<String, Object> paramMap) {
		// TODO Auto-generated method stub
       articleDAO.addArticleInfo(paramMap);
	}

	@Override
	public void updateArticleInfo(Article art) {
		// TODO Auto-generated method stub
		articleDAO.updateArticleInfo(art);
	}

	@Override
	public void deleteArticleInfo(String fileid) {
		// TODO Auto-generated method stub
		articleDAO.deleteArticleInfo(fileid);
	}

	
	
	@Override
	public int getArtBrUserCount(Map<String, Object> paramMap) {
		// TODO Auto-generated method stub
		return articleDAO.getArtBrUserCount(paramMap);
	}

	@Override
	public int getArtDownUserCount(Map<String, Object> paramMap) {
		// TODO Auto-generated method stub
		return articleDAO.getArtDownUserCount(paramMap);
	}

	@Override
	public int getArtGreatUserCount(Map<String, Object> paramMap) {
		// TODO Auto-generated method stub
		return articleDAO.getArtGreatUserCount(paramMap);
	}

	@Override
	public int getArtComtUserCount(Map<String, Object> paramMap) {
		// TODO Auto-generated method stub
		return articleDAO.getArtComtUserCount(paramMap);
	}

	@Override
	public Article getArtBrUserByPage(Map<String, Object> paramMap) {
		// TODO Auto-generated method stub
		return articleDAO.getArtBrUserByPage(paramMap);
	}

	@Override
	public Article getArtDownUserByPage(Map<String, Object> paramMap) {
		// TODO Auto-generated method stub
		return articleDAO.getArtDownUserByPage(paramMap);
	}

	@Override
	public Article getArtGreatUserByPage(Map<String, Object> paramMap) {
		// TODO Auto-generated method stub
		return articleDAO.getArtGreatUserByPage(paramMap);
	}

	@Override
	public Article getArtComtUserByPage(Map<String, Object> paramMap) {
		// TODO Auto-generated method stub
		return articleDAO.getArtComtUserByPage(paramMap);
	}

	
	
}
